\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules}{\section{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Life\-Cycle\-Rules \-Class \-Reference}
\label{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules}\index{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Life\-Cycle\-Rules@{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Life\-Cycle\-Rules}}
}


\-The configruation of whether or how long would objects with certain prefixes will expire and got deleted.  


\-Inheritance diagram for \-Rest\-A\-P\-I.\-amazon.\-S3.\-Life\-Cycle\-Rules\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_a7fa1f21f3af66362c72f4d6a3f462d82}{def {\bfseries \-\_\-\-\_\-init\-\_\-\-\_\-}}\label{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_a7fa1f21f3af66362c72f4d6a3f462d82}

\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_aa80fdebf53b67bdd012c64db381215bf}{enable}
\begin{DoxyCompactList}\small\item\em \-Enable a rule with given id. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_a9d9f7673fd0ac51554bfe9beabe2ff5b}{disable}
\begin{DoxyCompactList}\small\item\em \-Disable a rule with given id. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_ae12f2c3332d575c3d163b1640b543650}{add\-Rule}
\begin{DoxyCompactList}\small\item\em \-Set a location that the files are automatically removed after certain time. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_aa30745478c6bbb3daa1ba693a442c45a}{content}
\begin{DoxyCompactList}\small\item\em \-Returns the request body need to be sent through \-A\-W\-S requests. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1service_1_1AWSConfiguration_a4683d9d74953a88fa88139138acf338f}{headers}
\begin{DoxyCompactList}\small\item\em \-Returns the request headers need to be added to the \-A\-W\-S request. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_a242396f0da60775f29d5ff37b72f54ff}{{\bfseries data}}\label{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_a242396f0da60775f29d5ff37b72f54ff}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-The configruation of whether or how long would objects with certain prefixes will expire and got deleted. 

\-T\-O\-D\-O xml error reported by amazon. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_ae12f2c3332d575c3d163b1640b543650}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules}!add\-Rule@{add\-Rule}}
\index{add\-Rule@{add\-Rule}!RestAPI::amazon::S3::LifeCycleRules@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules}}
\subsubsection[{add\-Rule}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-Life\-Cycle\-Rules.\-add\-Rule} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{loc, }
\item[{}]{expires = {\ttfamily '365~days'}, }
\item[{}]{id = {\ttfamily \-None}}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_ae12f2c3332d575c3d163b1640b543650}


\-Set a location that the files are automatically removed after certain time. 

\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_aa30745478c6bbb3daa1ba693a442c45a}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules}!content@{content}}
\index{content@{content}!RestAPI::amazon::S3::LifeCycleRules@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules}}
\subsubsection[{content}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-Life\-Cycle\-Rules.\-content} (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_aa30745478c6bbb3daa1ba693a442c45a}


\-Returns the request body need to be sent through \-A\-W\-S requests. 



\-Reimplemented from \hyperlink{classRestAPI_1_1amazon_1_1service_1_1AWSConfiguration_a29a95f6203ff8126fdfae6936a768e40}{\-Rest\-A\-P\-I.\-amazon.\-service.\-A\-W\-S\-Configuration}.

\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_a9d9f7673fd0ac51554bfe9beabe2ff5b}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules}!disable@{disable}}
\index{disable@{disable}!RestAPI::amazon::S3::LifeCycleRules@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules}}
\subsubsection[{disable}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-Life\-Cycle\-Rules.\-disable} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{id}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_a9d9f7673fd0ac51554bfe9beabe2ff5b}


\-Disable a rule with given id. 

\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_aa80fdebf53b67bdd012c64db381215bf}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules}!enable@{enable}}
\index{enable@{enable}!RestAPI::amazon::S3::LifeCycleRules@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules}}
\subsubsection[{enable}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-Life\-Cycle\-Rules.\-enable} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{id}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1LifeCycleRules_aa80fdebf53b67bdd012c64db381215bf}


\-Enable a rule with given id. 

\hypertarget{classRestAPI_1_1amazon_1_1service_1_1AWSConfiguration_a4683d9d74953a88fa88139138acf338f}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules}!headers@{headers}}
\index{headers@{headers}!RestAPI::amazon::S3::LifeCycleRules@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-Life\-Cycle\-Rules}}
\subsubsection[{headers}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-service.\-A\-W\-S\-Configuration.\-headers} (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inherited\mbox{]}}}}\label{classRestAPI_1_1amazon_1_1service_1_1AWSConfiguration_a4683d9d74953a88fa88139138acf338f}


\-Returns the request headers need to be added to the \-A\-W\-S request. 



\-Reimplemented in \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1VersionControl_ade9eec662e9081f233a4cc017a971515}{\-Rest\-A\-P\-I.\-amazon.\-S3.\-Version\-Control}.



\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
amazon/\-S3.\-py\end{DoxyCompactItemize}
